﻿using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace _03Net8Logging.Customs
{
    public static class MySQLLoggerExtensions
    {
        /// <summary>
        /// MySQL 日志扩展方法
        /// </summary>
        /// <param name="builder"></param>
        /// <param name="connectionString"></param>
        public static void AddMySQL(this ILoggingBuilder builder, string connectionString)
        {
            builder.AddProvider(new MySQLLoggerProvider(connectionString));
        }

    }
}
